package ysc.cqnu.operdb.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.mapper.DiaoKeMapper;
import ysc.cqnu.operdb.service.UpdateDiaoKeInfoNoImgService;

@Service
public class UpdateDiaoKeInfoNoImgServiceImpl implements UpdateDiaoKeInfoNoImgService {
    @Autowired
    private ResultData resultData;
    @Autowired
    private DiaoKeMapper diaoKeMapper;
    @Override
    public ResultData updateDiaoKeInfoNoImgService(String diaoke, String visualize, String purpose, String theSite, String bfDescribe, String id) {
        try {
            diaoKeMapper.updateDiaoKeInfoNoImg(visualize,purpose,theSite,bfDescribe,id);
            resultData.flag="DiaokeInfoSuccess";
            resultData.data=null;
        } catch (Exception e) {
            e.printStackTrace();
            resultData.flag="DiaokeInfoFail";
            resultData.data=null;
            return resultData;
        }
        return resultData;
    }
}
